<include file="Public/header" />
<title>企业管理</title>
</head>
<body>
<div class="page-container">
    <div class="cl pd-5 bg-1 bk-gray mt-20">
		<button type="button" onclick="add()" class="btn btn-success"><i class="icon-plus"></i> 添加</button>
		<span class="r">共有数据：<strong><{$count}></strong> 条</span> 
    </div>
    <div class="mt-20">
		<table class="table table-border table-bordered table-bg">
		<thead>
			<tr>
				<th scope="col" colspan="15">订单列表</th>
			</tr>
			<tr class="text-c">
				<th width="25" class="sorting_disabled" rowspan="1" colspan="1" aria-label="" style="width: 25px;"><input type="checkbox" name="" value=""></th>
				<th>序号</th>
				<th width="">物流状态</th>
				<th width="">添加时间</th>
				<th width="">操作</th>
			</tr>
		</thead>
		<tbody>
			<volist name="emslog_list" id="vo">
			<tr class="text-c">
				<td><input type="checkbox" value="<{$vo.id}>" name="" class="ids"></td>
				<td><{$i}></td>
				<td><{$vo.text}></td>
				<td><{$vo.add_time|date="Y-m-d H:i:s",###}></td>
				<td>
				<a title="删除" href="javascript:;" onclick="admin_del('__URL__/del_emslog/','<{$vo.id}>')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont"></i></a>
				</td>
			</tr>
			</volist>			
		</tbody>
	</table>
	<div class="page mt" style="text-align:right"><{$page}></div>
</div>
<include file="Public/footer" />
<include file="Public/footer_js" />
<script>
    function add(id){
		var order_id=<{:I('order_id')}>;
		var user_id=<{:I('user_id')}>;
        layer.prompt({title:'请输入快递状态',formType:0},function(text,index){
			$.post('__MODULE__/Company/add_emslog',{
				id:id,
				order_id:order_id,
				user_id:user_id,
				text:text,
			},function (msg){
				layer.msg(msg.info);
				if(msg.status==1){
					setTimeout(function (){
						location.reload();
					},800);
				}
			},'json');
		});
    }
</script>
</body>
</html>